package com.benio.ycfdisplayer.displayer;

import android.graphics.drawable.Drawable;

/**
 * 公用options
 * Created by zhangzhibin on 2016/8/30.
 */
public class Options {
    public final Drawable failureImage;
    public final Drawable placeHolderImage;

    public Options(Builder builder) {
        failureImage = builder.failureImage;
        placeHolderImage = builder.placeHolderImage;
    }

    public static class Builder {
        private Drawable failureImage;
        private Drawable placeHolderImage;

        public Builder setFailureImage(Drawable failureImage) {
            this.failureImage = failureImage;
            return this;
        }

        public Builder setPlaceHolderImage(Drawable placeHolderImage) {
            this.placeHolderImage = placeHolderImage;
            return this;
        }

        public Options build() {
            return new Options(this);
        }
    }
}
